{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import tushare as ts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2815.20</td>\n",
       "      <td>2863.57</td>\n",
       "      <td>2859.54</td>\n",
       "      <td>2809.62</td>\n",
       "      <td>1733828.00</td>\n",
       "      <td>30.27</td>\n",
       "      <td>1.07</td>\n",
       "      <td>2809.350</td>\n",
       "      <td>2813.503</td>\n",
       "      <td>2802.242</td>\n",
       "      <td>1320294.73</td>\n",
       "      <td>1276467.96</td>\n",
       "      <td>1282851.17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2769.75</td>\n",
       "      <td>2837.86</td>\n",
       "      <td>2829.27</td>\n",
       "      <td>2753.84</td>\n",
       "      <td>1459076.88</td>\n",
       "      <td>56.72</td>\n",
       "      <td>2.05</td>\n",
       "      <td>2800.250</td>\n",
       "      <td>2809.060</td>\n",
       "      <td>2802.232</td>\n",
       "      <td>1189063.43</td>\n",
       "      <td>1224634.48</td>\n",
       "      <td>1257118.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2791.02</td>\n",
       "      <td>2805.01</td>\n",
       "      <td>2772.55</td>\n",
       "      <td>2764.49</td>\n",
       "      <td>1144864.88</td>\n",
       "      <td>-14.71</td>\n",
       "      <td>-0.53</td>\n",
       "      <td>2800.632</td>\n",
       "      <td>2800.856</td>\n",
       "      <td>2805.257</td>\n",
       "      <td>1132626.75</td>\n",
       "      <td>1215021.16</td>\n",
       "      <td>1247236.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2801.78</td>\n",
       "      <td>2818.40</td>\n",
       "      <td>2787.26</td>\n",
       "      <td>2786.04</td>\n",
       "      <td>1209611.62</td>\n",
       "      <td>-10.87</td>\n",
       "      <td>-0.39</td>\n",
       "      <td>2813.654</td>\n",
       "      <td>2796.989</td>\n",
       "      <td>2810.420</td>\n",
       "      <td>1197614.17</td>\n",
       "      <td>1229760.79</td>\n",
       "      <td>1267182.26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2806.89</td>\n",
       "      <td>2806.92</td>\n",
       "      <td>2798.13</td>\n",
       "      <td>2774.76</td>\n",
       "      <td>1054092.25</td>\n",
       "      <td>-15.91</td>\n",
       "      <td>-0.56</td>\n",
       "      <td>2811.756</td>\n",
       "      <td>2794.176</td>\n",
       "      <td>2816.843</td>\n",
       "      <td>1209334.15</td>\n",
       "      <td>1232061.80</td>\n",
       "      <td>1278852.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2827.08</td>\n",
       "      <td>2837.51</td>\n",
       "      <td>2814.04</td>\n",
       "      <td>2804.49</td>\n",
       "      <td>1077671.50</td>\n",
       "      <td>-17.14</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>2817.656</td>\n",
       "      <td>2793.052</td>\n",
       "      <td>2822.328</td>\n",
       "      <td>1232641.20</td>\n",
       "      <td>1269151.04</td>\n",
       "      <td>1341422.81</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2831.43</td>\n",
       "      <td>2835.46</td>\n",
       "      <td>2831.18</td>\n",
       "      <td>2818.85</td>\n",
       "      <td>1176893.50</td>\n",
       "      <td>-6.48</td>\n",
       "      <td>-0.23</td>\n",
       "      <td>2817.870</td>\n",
       "      <td>2789.204</td>\n",
       "      <td>2832.721</td>\n",
       "      <td>1260205.52</td>\n",
       "      <td>1298418.92</td>\n",
       "      <td>1359805.53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2771.04</td>\n",
       "      <td>2844.19</td>\n",
       "      <td>2837.66</td>\n",
       "      <td>2771.04</td>\n",
       "      <td>1469802.00</td>\n",
       "      <td>59.89</td>\n",
       "      <td>2.16</td>\n",
       "      <td>2801.080</td>\n",
       "      <td>2790.828</td>\n",
       "      <td>2843.370</td>\n",
       "      <td>1297415.57</td>\n",
       "      <td>1306401.26</td>\n",
       "      <td>1358695.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2780.70</td>\n",
       "      <td>2794.36</td>\n",
       "      <td>2777.77</td>\n",
       "      <td>2752.44</td>\n",
       "      <td>1268211.50</td>\n",
       "      <td>-49.86</td>\n",
       "      <td>-1.76</td>\n",
       "      <td>2780.324</td>\n",
       "      <td>2785.752</td>\n",
       "      <td>2853.977</td>\n",
       "      <td>1261907.40</td>\n",
       "      <td>1277778.97</td>\n",
       "      <td>1345009.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2819.71</td>\n",
       "      <td>2828.49</td>\n",
       "      <td>2827.63</td>\n",
       "      <td>2800.63</td>\n",
       "      <td>1170627.50</td>\n",
       "      <td>12.52</td>\n",
       "      <td>0.45</td>\n",
       "      <td>2776.596</td>\n",
       "      <td>2789.293</td>\n",
       "      <td>2869.078</td>\n",
       "      <td>1254789.45</td>\n",
       "      <td>1280378.66</td>\n",
       "      <td>1338236.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2752.45</td>\n",
       "      <td>2815.79</td>\n",
       "      <td>2815.11</td>\n",
       "      <td>2752.45</td>\n",
       "      <td>1215493.12</td>\n",
       "      <td>67.88</td>\n",
       "      <td>2.47</td>\n",
       "      <td>2768.448</td>\n",
       "      <td>2790.981</td>\n",
       "      <td>2880.336</td>\n",
       "      <td>1305660.87</td>\n",
       "      <td>1289234.37</td>\n",
       "      <td>1333986.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2731.35</td>\n",
       "      <td>2768.87</td>\n",
       "      <td>2747.23</td>\n",
       "      <td>2691.02</td>\n",
       "      <td>1362943.75</td>\n",
       "      <td>13.35</td>\n",
       "      <td>0.49</td>\n",
       "      <td>2760.538</td>\n",
       "      <td>2795.404</td>\n",
       "      <td>2892.938</td>\n",
       "      <td>1336632.32</td>\n",
       "      <td>1289602.75</td>\n",
       "      <td>1340556.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2755.34</td>\n",
       "      <td>2777.52</td>\n",
       "      <td>2733.88</td>\n",
       "      <td>2727.94</td>\n",
       "      <td>1292261.12</td>\n",
       "      <td>-25.25</td>\n",
       "      <td>-0.92</td>\n",
       "      <td>2780.576</td>\n",
       "      <td>2809.657</td>\n",
       "      <td>2911.051</td>\n",
       "      <td>1315386.95</td>\n",
       "      <td>1279451.50</td>\n",
       "      <td>1336301.69</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2776.63</td>\n",
       "      <td>2793.18</td>\n",
       "      <td>2759.13</td>\n",
       "      <td>2754.16</td>\n",
       "      <td>1232621.75</td>\n",
       "      <td>-27.76</td>\n",
       "      <td>-1.00</td>\n",
       "      <td>2791.180</td>\n",
       "      <td>2823.850</td>\n",
       "      <td>2930.116</td>\n",
       "      <td>1293650.55</td>\n",
       "      <td>1304603.73</td>\n",
       "      <td>1331786.70</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2774.57</td>\n",
       "      <td>2786.89</td>\n",
       "      <td>2786.89</td>\n",
       "      <td>2722.45</td>\n",
       "      <td>1424984.62</td>\n",
       "      <td>11.33</td>\n",
       "      <td>0.41</td>\n",
       "      <td>2801.990</td>\n",
       "      <td>2839.510</td>\n",
       "      <td>2947.870</td>\n",
       "      <td>1305967.88</td>\n",
       "      <td>1325642.98</td>\n",
       "      <td>1329523.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2841.58</td>\n",
       "      <td>2845.68</td>\n",
       "      <td>2775.56</td>\n",
       "      <td>2756.82</td>\n",
       "      <td>1370350.38</td>\n",
       "      <td>-71.86</td>\n",
       "      <td>-2.52</td>\n",
       "      <td>2813.514</td>\n",
       "      <td>2851.603</td>\n",
       "      <td>2963.085</td>\n",
       "      <td>1272807.88</td>\n",
       "      <td>1413694.59</td>\n",
       "      <td>1315571.13</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               open     high    close      low      volume  price_change  \\\n",
       "date                                                                       \n",
       "2018-07-23  2815.20  2863.57  2859.54  2809.62  1733828.00         30.27   \n",
       "2018-07-20  2769.75  2837.86  2829.27  2753.84  1459076.88         56.72   \n",
       "2018-07-19  2791.02  2805.01  2772.55  2764.49  1144864.88        -14.71   \n",
       "2018-07-18  2801.78  2818.40  2787.26  2786.04  1209611.62        -10.87   \n",
       "2018-07-17  2806.89  2806.92  2798.13  2774.76  1054092.25        -15.91   \n",
       "2018-07-16  2827.08  2837.51  2814.04  2804.49  1077671.50        -17.14   \n",
       "2018-07-13  2831.43  2835.46  2831.18  2818.85  1176893.50         -6.48   \n",
       "2018-07-12  2771.04  2844.19  2837.66  2771.04  1469802.00         59.89   \n",
       "2018-07-11  2780.70  2794.36  2777.77  2752.44  1268211.50        -49.86   \n",
       "2018-07-10  2819.71  2828.49  2827.63  2800.63  1170627.50         12.52   \n",
       "2018-07-09  2752.45  2815.79  2815.11  2752.45  1215493.12         67.88   \n",
       "2018-07-06  2731.35  2768.87  2747.23  2691.02  1362943.75         13.35   \n",
       "2018-07-05  2755.34  2777.52  2733.88  2727.94  1292261.12        -25.25   \n",
       "2018-07-04  2776.63  2793.18  2759.13  2754.16  1232621.75        -27.76   \n",
       "2018-07-03  2774.57  2786.89  2786.89  2722.45  1424984.62         11.33   \n",
       "2018-07-02  2841.58  2845.68  2775.56  2756.82  1370350.38        -71.86   \n",
       "\n",
       "            p_change       ma5      ma10      ma20       v_ma5      v_ma10  \\\n",
       "date                                                                         \n",
       "2018-07-23      1.07  2809.350  2813.503  2802.242  1320294.73  1276467.96   \n",
       "2018-07-20      2.05  2800.250  2809.060  2802.232  1189063.43  1224634.48   \n",
       "2018-07-19     -0.53  2800.632  2800.856  2805.257  1132626.75  1215021.16   \n",
       "2018-07-18     -0.39  2813.654  2796.989  2810.420  1197614.17  1229760.79   \n",
       "2018-07-17     -0.56  2811.756  2794.176  2816.843  1209334.15  1232061.80   \n",
       "2018-07-16     -0.60  2817.656  2793.052  2822.328  1232641.20  1269151.04   \n",
       "2018-07-13     -0.23  2817.870  2789.204  2832.721  1260205.52  1298418.92   \n",
       "2018-07-12      2.16  2801.080  2790.828  2843.370  1297415.57  1306401.26   \n",
       "2018-07-11     -1.76  2780.324  2785.752  2853.977  1261907.40  1277778.97   \n",
       "2018-07-10      0.45  2776.596  2789.293  2869.078  1254789.45  1280378.66   \n",
       "2018-07-09      2.47  2768.448  2790.981  2880.336  1305660.87  1289234.37   \n",
       "2018-07-06      0.49  2760.538  2795.404  2892.938  1336632.32  1289602.75   \n",
       "2018-07-05     -0.92  2780.576  2809.657  2911.051  1315386.95  1279451.50   \n",
       "2018-07-04     -1.00  2791.180  2823.850  2930.116  1293650.55  1304603.73   \n",
       "2018-07-03      0.41  2801.990  2839.510  2947.870  1305967.88  1325642.98   \n",
       "2018-07-02     -2.52  2813.514  2851.603  2963.085  1272807.88  1413694.59   \n",
       "\n",
       "                v_ma20  \n",
       "date                    \n",
       "2018-07-23  1282851.17  \n",
       "2018-07-20  1257118.61  \n",
       "2018-07-19  1247236.33  \n",
       "2018-07-18  1267182.26  \n",
       "2018-07-17  1278852.39  \n",
       "2018-07-16  1341422.81  \n",
       "2018-07-13  1359805.53  \n",
       "2018-07-12  1358695.59  \n",
       "2018-07-11  1345009.44  \n",
       "2018-07-10  1338236.41  \n",
       "2018-07-09  1333986.93  \n",
       "2018-07-06  1340556.39  \n",
       "2018-07-05  1336301.69  \n",
       "2018-07-04  1331786.70  \n",
       "2018-07-03  1329523.41  \n",
       "2018-07-02  1315571.13  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#获取上证指数k线数据，其它参数与个股一致，下同\n",
    "ts.get_hist_data('sh',start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "#获取深圳成指k线数据\n",
    "ts.get_hist_data('sz',start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>3426.46</td>\n",
       "      <td>3505.93</td>\n",
       "      <td>3492.89</td>\n",
       "      <td>3398.95</td>\n",
       "      <td>1019847.25</td>\n",
       "      <td>64.55</td>\n",
       "      <td>1.88</td>\n",
       "      <td>3454.804</td>\n",
       "      <td>3458.200</td>\n",
       "      <td>3447.796</td>\n",
       "      <td>734515.70</td>\n",
       "      <td>754758.63</td>\n",
       "      <td>788380.79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>3444.80</td>\n",
       "      <td>3466.51</td>\n",
       "      <td>3428.34</td>\n",
       "      <td>3417.96</td>\n",
       "      <td>684777.19</td>\n",
       "      <td>-2.98</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3454.764</td>\n",
       "      <td>3445.423</td>\n",
       "      <td>3453.596</td>\n",
       "      <td>676458.05</td>\n",
       "      <td>738871.49</td>\n",
       "      <td>774947.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>3456.61</td>\n",
       "      <td>3479.26</td>\n",
       "      <td>3431.32</td>\n",
       "      <td>3430.16</td>\n",
       "      <td>665303.31</td>\n",
       "      <td>-18.06</td>\n",
       "      <td>-0.52</td>\n",
       "      <td>3465.308</td>\n",
       "      <td>3436.833</td>\n",
       "      <td>3461.828</td>\n",
       "      <td>732209.74</td>\n",
       "      <td>751981.75</td>\n",
       "      <td>787662.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>3466.42</td>\n",
       "      <td>3467.19</td>\n",
       "      <td>3449.38</td>\n",
       "      <td>3420.97</td>\n",
       "      <td>619830.75</td>\n",
       "      <td>-22.71</td>\n",
       "      <td>-0.65</td>\n",
       "      <td>3460.550</td>\n",
       "      <td>3430.076</td>\n",
       "      <td>3472.034</td>\n",
       "      <td>743230.97</td>\n",
       "      <td>760609.42</td>\n",
       "      <td>797756.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>3488.97</td>\n",
       "      <td>3506.24</td>\n",
       "      <td>3472.09</td>\n",
       "      <td>3459.73</td>\n",
       "      <td>682820.00</td>\n",
       "      <td>-20.60</td>\n",
       "      <td>-0.59</td>\n",
       "      <td>3464.178</td>\n",
       "      <td>3426.066</td>\n",
       "      <td>3480.621</td>\n",
       "      <td>758362.47</td>\n",
       "      <td>793905.04</td>\n",
       "      <td>847118.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>3488.50</td>\n",
       "      <td>3499.76</td>\n",
       "      <td>3492.69</td>\n",
       "      <td>3474.91</td>\n",
       "      <td>729559.00</td>\n",
       "      <td>11.63</td>\n",
       "      <td>0.33</td>\n",
       "      <td>3461.596</td>\n",
       "      <td>3419.653</td>\n",
       "      <td>3494.688</td>\n",
       "      <td>775001.56</td>\n",
       "      <td>809974.49</td>\n",
       "      <td>855721.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>3403.33</td>\n",
       "      <td>3499.10</td>\n",
       "      <td>3481.06</td>\n",
       "      <td>3403.33</td>\n",
       "      <td>963535.62</td>\n",
       "      <td>73.53</td>\n",
       "      <td>2.16</td>\n",
       "      <td>3436.082</td>\n",
       "      <td>3421.482</td>\n",
       "      <td>3508.722</td>\n",
       "      <td>801284.92</td>\n",
       "      <td>814275.62</td>\n",
       "      <td>853479.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>3398.93</td>\n",
       "      <td>3427.57</td>\n",
       "      <td>3407.53</td>\n",
       "      <td>3375.14</td>\n",
       "      <td>720409.50</td>\n",
       "      <td>-59.99</td>\n",
       "      <td>-1.73</td>\n",
       "      <td>3408.358</td>\n",
       "      <td>3415.729</td>\n",
       "      <td>3524.086</td>\n",
       "      <td>771753.76</td>\n",
       "      <td>793840.11</td>\n",
       "      <td>838491.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>3464.91</td>\n",
       "      <td>3474.14</td>\n",
       "      <td>3467.52</td>\n",
       "      <td>3437.27</td>\n",
       "      <td>695488.25</td>\n",
       "      <td>8.34</td>\n",
       "      <td>0.24</td>\n",
       "      <td>3399.602</td>\n",
       "      <td>3420.902</td>\n",
       "      <td>3545.007</td>\n",
       "      <td>777987.86</td>\n",
       "      <td>803290.98</td>\n",
       "      <td>839074.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>3378.91</td>\n",
       "      <td>3459.32</td>\n",
       "      <td>3459.18</td>\n",
       "      <td>3378.91</td>\n",
       "      <td>766015.44</td>\n",
       "      <td>94.06</td>\n",
       "      <td>2.79</td>\n",
       "      <td>3387.954</td>\n",
       "      <td>3427.261</td>\n",
       "      <td>3560.630</td>\n",
       "      <td>829447.60</td>\n",
       "      <td>818727.42</td>\n",
       "      <td>838654.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>3347.06</td>\n",
       "      <td>3396.25</td>\n",
       "      <td>3365.12</td>\n",
       "      <td>3295.73</td>\n",
       "      <td>860975.81</td>\n",
       "      <td>22.68</td>\n",
       "      <td>0.68</td>\n",
       "      <td>3377.710</td>\n",
       "      <td>3437.391</td>\n",
       "      <td>3576.652</td>\n",
       "      <td>844947.41</td>\n",
       "      <td>822002.95</td>\n",
       "      <td>842022.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>3365.55</td>\n",
       "      <td>3398.49</td>\n",
       "      <td>3342.44</td>\n",
       "      <td>3330.71</td>\n",
       "      <td>815879.81</td>\n",
       "      <td>-21.31</td>\n",
       "      <td>-0.63</td>\n",
       "      <td>3406.882</td>\n",
       "      <td>3461.769</td>\n",
       "      <td>3599.946</td>\n",
       "      <td>827266.31</td>\n",
       "      <td>811023.23</td>\n",
       "      <td>839102.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>3398.78</td>\n",
       "      <td>3418.33</td>\n",
       "      <td>3363.75</td>\n",
       "      <td>3359.09</td>\n",
       "      <td>751580.00</td>\n",
       "      <td>-45.53</td>\n",
       "      <td>-1.33</td>\n",
       "      <td>3423.100</td>\n",
       "      <td>3486.822</td>\n",
       "      <td>3624.692</td>\n",
       "      <td>815926.45</td>\n",
       "      <td>823343.80</td>\n",
       "      <td>834866.71</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>3410.48</td>\n",
       "      <td>3422.04</td>\n",
       "      <td>3409.28</td>\n",
       "      <td>3319.29</td>\n",
       "      <td>952786.94</td>\n",
       "      <td>1.32</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3442.202</td>\n",
       "      <td>3513.991</td>\n",
       "      <td>3648.770</td>\n",
       "      <td>828594.09</td>\n",
       "      <td>834903.90</td>\n",
       "      <td>836631.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>3504.46</td>\n",
       "      <td>3506.90</td>\n",
       "      <td>3407.96</td>\n",
       "      <td>3383.50</td>\n",
       "      <td>843514.50</td>\n",
       "      <td>-103.02</td>\n",
       "      <td>-2.93</td>\n",
       "      <td>3466.568</td>\n",
       "      <td>3535.175</td>\n",
       "      <td>3668.685</td>\n",
       "      <td>808007.24</td>\n",
       "      <td>900331.74</td>\n",
       "      <td>827304.22</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               open     high    close      low      volume  price_change  \\\n",
       "date                                                                       \n",
       "2018-07-20  3426.46  3505.93  3492.89  3398.95  1019847.25         64.55   \n",
       "2018-07-19  3444.80  3466.51  3428.34  3417.96   684777.19         -2.98   \n",
       "2018-07-18  3456.61  3479.26  3431.32  3430.16   665303.31        -18.06   \n",
       "2018-07-17  3466.42  3467.19  3449.38  3420.97   619830.75        -22.71   \n",
       "2018-07-16  3488.97  3506.24  3472.09  3459.73   682820.00        -20.60   \n",
       "2018-07-13  3488.50  3499.76  3492.69  3474.91   729559.00         11.63   \n",
       "2018-07-12  3403.33  3499.10  3481.06  3403.33   963535.62         73.53   \n",
       "2018-07-11  3398.93  3427.57  3407.53  3375.14   720409.50        -59.99   \n",
       "2018-07-10  3464.91  3474.14  3467.52  3437.27   695488.25          8.34   \n",
       "2018-07-09  3378.91  3459.32  3459.18  3378.91   766015.44         94.06   \n",
       "2018-07-06  3347.06  3396.25  3365.12  3295.73   860975.81         22.68   \n",
       "2018-07-05  3365.55  3398.49  3342.44  3330.71   815879.81        -21.31   \n",
       "2018-07-04  3398.78  3418.33  3363.75  3359.09   751580.00        -45.53   \n",
       "2018-07-03  3410.48  3422.04  3409.28  3319.29   952786.94          1.32   \n",
       "2018-07-02  3504.46  3506.90  3407.96  3383.50   843514.50       -103.02   \n",
       "\n",
       "            p_change       ma5      ma10      ma20      v_ma5     v_ma10  \\\n",
       "date                                                                       \n",
       "2018-07-20      1.88  3454.804  3458.200  3447.796  734515.70  754758.63   \n",
       "2018-07-19     -0.09  3454.764  3445.423  3453.596  676458.05  738871.49   \n",
       "2018-07-18     -0.52  3465.308  3436.833  3461.828  732209.74  751981.75   \n",
       "2018-07-17     -0.65  3460.550  3430.076  3472.034  743230.97  760609.42   \n",
       "2018-07-16     -0.59  3464.178  3426.066  3480.621  758362.47  793905.04   \n",
       "2018-07-13      0.33  3461.596  3419.653  3494.688  775001.56  809974.49   \n",
       "2018-07-12      2.16  3436.082  3421.482  3508.722  801284.92  814275.62   \n",
       "2018-07-11     -1.73  3408.358  3415.729  3524.086  771753.76  793840.11   \n",
       "2018-07-10      0.24  3399.602  3420.902  3545.007  777987.86  803290.98   \n",
       "2018-07-09      2.79  3387.954  3427.261  3560.630  829447.60  818727.42   \n",
       "2018-07-06      0.68  3377.710  3437.391  3576.652  844947.41  822002.95   \n",
       "2018-07-05     -0.63  3406.882  3461.769  3599.946  827266.31  811023.23   \n",
       "2018-07-04     -1.33  3423.100  3486.822  3624.692  815926.45  823343.80   \n",
       "2018-07-03      0.04  3442.202  3513.991  3648.770  828594.09  834903.90   \n",
       "2018-07-02     -2.93  3466.568  3535.175  3668.685  808007.24  900331.74   \n",
       "\n",
       "               v_ma20  \n",
       "date                   \n",
       "2018-07-20  788380.79  \n",
       "2018-07-19  774947.36  \n",
       "2018-07-18  787662.77  \n",
       "2018-07-17  797756.66  \n",
       "2018-07-16  847118.39  \n",
       "2018-07-13  855721.84  \n",
       "2018-07-12  853479.55  \n",
       "2018-07-11  838491.75  \n",
       "2018-07-10  839074.40  \n",
       "2018-07-09  838654.90  \n",
       "2018-07-06  842022.80  \n",
       "2018-07-05  839102.09  \n",
       "2018-07-04  834866.71  \n",
       "2018-07-03  836631.39  \n",
       "2018-07-02  827304.22  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#获取沪深300指数k线数据\n",
    "ts.get_hist_data('hs300',start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2426.10</td>\n",
       "      <td>2506.94</td>\n",
       "      <td>2493.77</td>\n",
       "      <td>2409.05</td>\n",
       "      <td>344534.72</td>\n",
       "      <td>67.61</td>\n",
       "      <td>2.79</td>\n",
       "      <td>2443.980</td>\n",
       "      <td>2454.618</td>\n",
       "      <td>2443.393</td>\n",
       "      <td>218491.78</td>\n",
       "      <td>222960.81</td>\n",
       "      <td>234468.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2432.89</td>\n",
       "      <td>2452.45</td>\n",
       "      <td>2426.16</td>\n",
       "      <td>2418.66</td>\n",
       "      <td>204460.55</td>\n",
       "      <td>5.40</td>\n",
       "      <td>0.22</td>\n",
       "      <td>2440.598</td>\n",
       "      <td>2445.503</td>\n",
       "      <td>2447.890</td>\n",
       "      <td>189249.03</td>\n",
       "      <td>213429.37</td>\n",
       "      <td>227071.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2437.38</td>\n",
       "      <td>2458.48</td>\n",
       "      <td>2420.76</td>\n",
       "      <td>2419.32</td>\n",
       "      <td>178074.66</td>\n",
       "      <td>-9.68</td>\n",
       "      <td>-0.40</td>\n",
       "      <td>2450.290</td>\n",
       "      <td>2440.323</td>\n",
       "      <td>2455.535</td>\n",
       "      <td>203005.11</td>\n",
       "      <td>218251.95</td>\n",
       "      <td>229164.64</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2443.55</td>\n",
       "      <td>2446.10</td>\n",
       "      <td>2430.44</td>\n",
       "      <td>2414.35</td>\n",
       "      <td>166664.33</td>\n",
       "      <td>-18.33</td>\n",
       "      <td>-0.75</td>\n",
       "      <td>2452.594</td>\n",
       "      <td>2435.090</td>\n",
       "      <td>2464.413</td>\n",
       "      <td>209093.98</td>\n",
       "      <td>220108.96</td>\n",
       "      <td>232176.34</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2471.15</td>\n",
       "      <td>2484.17</td>\n",
       "      <td>2448.77</td>\n",
       "      <td>2438.86</td>\n",
       "      <td>198724.62</td>\n",
       "      <td>-28.09</td>\n",
       "      <td>-1.13</td>\n",
       "      <td>2460.752</td>\n",
       "      <td>2430.944</td>\n",
       "      <td>2472.880</td>\n",
       "      <td>218508.03</td>\n",
       "      <td>232517.21</td>\n",
       "      <td>252630.30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2480.82</td>\n",
       "      <td>2481.56</td>\n",
       "      <td>2476.86</td>\n",
       "      <td>2464.95</td>\n",
       "      <td>198321.00</td>\n",
       "      <td>2.24</td>\n",
       "      <td>0.09</td>\n",
       "      <td>2465.256</td>\n",
       "      <td>2424.705</td>\n",
       "      <td>2483.841</td>\n",
       "      <td>227429.84</td>\n",
       "      <td>238752.90</td>\n",
       "      <td>255503.26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2425.67</td>\n",
       "      <td>2490.44</td>\n",
       "      <td>2474.62</td>\n",
       "      <td>2425.67</td>\n",
       "      <td>273240.94</td>\n",
       "      <td>42.34</td>\n",
       "      <td>1.74</td>\n",
       "      <td>2450.408</td>\n",
       "      <td>2425.010</td>\n",
       "      <td>2493.563</td>\n",
       "      <td>237609.70</td>\n",
       "      <td>239683.45</td>\n",
       "      <td>256265.69</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2420.18</td>\n",
       "      <td>2443.35</td>\n",
       "      <td>2432.28</td>\n",
       "      <td>2409.31</td>\n",
       "      <td>208519.02</td>\n",
       "      <td>-38.95</td>\n",
       "      <td>-1.58</td>\n",
       "      <td>2430.356</td>\n",
       "      <td>2420.066</td>\n",
       "      <td>2503.413</td>\n",
       "      <td>233498.79</td>\n",
       "      <td>235215.41</td>\n",
       "      <td>252297.23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2475.98</td>\n",
       "      <td>2477.84</td>\n",
       "      <td>2471.23</td>\n",
       "      <td>2448.86</td>\n",
       "      <td>213734.59</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>2417.586</td>\n",
       "      <td>2422.102</td>\n",
       "      <td>2516.184</td>\n",
       "      <td>231123.94</td>\n",
       "      <td>241790.42</td>\n",
       "      <td>251692.78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2410.52</td>\n",
       "      <td>2471.80</td>\n",
       "      <td>2471.29</td>\n",
       "      <td>2410.52</td>\n",
       "      <td>243333.66</td>\n",
       "      <td>68.67</td>\n",
       "      <td>2.86</td>\n",
       "      <td>2401.136</td>\n",
       "      <td>2425.651</td>\n",
       "      <td>2525.643</td>\n",
       "      <td>246526.39</td>\n",
       "      <td>246867.07</td>\n",
       "      <td>250893.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2378.87</td>\n",
       "      <td>2422.40</td>\n",
       "      <td>2402.62</td>\n",
       "      <td>2349.48</td>\n",
       "      <td>249220.30</td>\n",
       "      <td>28.26</td>\n",
       "      <td>1.19</td>\n",
       "      <td>2384.154</td>\n",
       "      <td>2432.168</td>\n",
       "      <td>2534.683</td>\n",
       "      <td>250075.96</td>\n",
       "      <td>245976.78</td>\n",
       "      <td>251742.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2370.86</td>\n",
       "      <td>2398.56</td>\n",
       "      <td>2374.36</td>\n",
       "      <td>2352.97</td>\n",
       "      <td>252686.39</td>\n",
       "      <td>5.93</td>\n",
       "      <td>0.25</td>\n",
       "      <td>2399.612</td>\n",
       "      <td>2450.277</td>\n",
       "      <td>2549.314</td>\n",
       "      <td>241757.20</td>\n",
       "      <td>240713.59</td>\n",
       "      <td>251036.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2381.25</td>\n",
       "      <td>2403.51</td>\n",
       "      <td>2368.43</td>\n",
       "      <td>2365.89</td>\n",
       "      <td>196644.77</td>\n",
       "      <td>-20.55</td>\n",
       "      <td>-0.86</td>\n",
       "      <td>2409.776</td>\n",
       "      <td>2470.746</td>\n",
       "      <td>2565.205</td>\n",
       "      <td>236932.02</td>\n",
       "      <td>240077.33</td>\n",
       "      <td>248664.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2389.36</td>\n",
       "      <td>2395.08</td>\n",
       "      <td>2388.98</td>\n",
       "      <td>2331.84</td>\n",
       "      <td>290746.81</td>\n",
       "      <td>2.60</td>\n",
       "      <td>0.11</td>\n",
       "      <td>2426.618</td>\n",
       "      <td>2493.736</td>\n",
       "      <td>2582.134</td>\n",
       "      <td>252456.91</td>\n",
       "      <td>244243.71</td>\n",
       "      <td>249939.19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2473.31</td>\n",
       "      <td>2473.73</td>\n",
       "      <td>2386.38</td>\n",
       "      <td>2370.40</td>\n",
       "      <td>261081.52</td>\n",
       "      <td>-93.53</td>\n",
       "      <td>-3.77</td>\n",
       "      <td>2450.166</td>\n",
       "      <td>2514.816</td>\n",
       "      <td>2597.414</td>\n",
       "      <td>247207.74</td>\n",
       "      <td>272743.39</td>\n",
       "      <td>246674.99</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               open     high    close      low     volume  price_change  \\\n",
       "date                                                                      \n",
       "2018-07-20  2426.10  2506.94  2493.77  2409.05  344534.72         67.61   \n",
       "2018-07-19  2432.89  2452.45  2426.16  2418.66  204460.55          5.40   \n",
       "2018-07-18  2437.38  2458.48  2420.76  2419.32  178074.66         -9.68   \n",
       "2018-07-17  2443.55  2446.10  2430.44  2414.35  166664.33        -18.33   \n",
       "2018-07-16  2471.15  2484.17  2448.77  2438.86  198724.62        -28.09   \n",
       "2018-07-13  2480.82  2481.56  2476.86  2464.95  198321.00          2.24   \n",
       "2018-07-12  2425.67  2490.44  2474.62  2425.67  273240.94         42.34   \n",
       "2018-07-11  2420.18  2443.35  2432.28  2409.31  208519.02        -38.95   \n",
       "2018-07-10  2475.98  2477.84  2471.23  2448.86  213734.59         -0.06   \n",
       "2018-07-09  2410.52  2471.80  2471.29  2410.52  243333.66         68.67   \n",
       "2018-07-06  2378.87  2422.40  2402.62  2349.48  249220.30         28.26   \n",
       "2018-07-05  2370.86  2398.56  2374.36  2352.97  252686.39          5.93   \n",
       "2018-07-04  2381.25  2403.51  2368.43  2365.89  196644.77        -20.55   \n",
       "2018-07-03  2389.36  2395.08  2388.98  2331.84  290746.81          2.60   \n",
       "2018-07-02  2473.31  2473.73  2386.38  2370.40  261081.52        -93.53   \n",
       "\n",
       "            p_change       ma5      ma10      ma20      v_ma5     v_ma10  \\\n",
       "date                                                                       \n",
       "2018-07-20      2.79  2443.980  2454.618  2443.393  218491.78  222960.81   \n",
       "2018-07-19      0.22  2440.598  2445.503  2447.890  189249.03  213429.37   \n",
       "2018-07-18     -0.40  2450.290  2440.323  2455.535  203005.11  218251.95   \n",
       "2018-07-17     -0.75  2452.594  2435.090  2464.413  209093.98  220108.96   \n",
       "2018-07-16     -1.13  2460.752  2430.944  2472.880  218508.03  232517.21   \n",
       "2018-07-13      0.09  2465.256  2424.705  2483.841  227429.84  238752.90   \n",
       "2018-07-12      1.74  2450.408  2425.010  2493.563  237609.70  239683.45   \n",
       "2018-07-11     -1.58  2430.356  2420.066  2503.413  233498.79  235215.41   \n",
       "2018-07-10     -0.00  2417.586  2422.102  2516.184  231123.94  241790.42   \n",
       "2018-07-09      2.86  2401.136  2425.651  2525.643  246526.39  246867.07   \n",
       "2018-07-06      1.19  2384.154  2432.168  2534.683  250075.96  245976.78   \n",
       "2018-07-05      0.25  2399.612  2450.277  2549.314  241757.20  240713.59   \n",
       "2018-07-04     -0.86  2409.776  2470.746  2565.205  236932.02  240077.33   \n",
       "2018-07-03      0.11  2426.618  2493.736  2582.134  252456.91  244243.71   \n",
       "2018-07-02     -3.77  2450.166  2514.816  2597.414  247207.74  272743.39   \n",
       "\n",
       "               v_ma20  \n",
       "date                   \n",
       "2018-07-20  234468.80  \n",
       "2018-07-19  227071.48  \n",
       "2018-07-18  229164.64  \n",
       "2018-07-17  232176.34  \n",
       "2018-07-16  252630.30  \n",
       "2018-07-13  255503.26  \n",
       "2018-07-12  256265.69  \n",
       "2018-07-11  252297.23  \n",
       "2018-07-10  251692.78  \n",
       "2018-07-09  250893.56  \n",
       "2018-07-06  251742.48  \n",
       "2018-07-05  251036.98  \n",
       "2018-07-04  248664.22  \n",
       "2018-07-03  249939.19  \n",
       "2018-07-02  246674.99  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#获取上证50指数k线数据\n",
    "ts.get_hist_data('sz50', start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "#获取中小板指数k线数据\n",
    "ts.get_hist_data('zxb', start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "#获取创业板指数k线数据\n",
    "ts.get_hist_data('cyb', start='2018-07-01',end='2018-07-30')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = ts.get_hist_data('300036')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>21.27</td>\n",
       "      <td>23.36</td>\n",
       "      <td>23.36</td>\n",
       "      <td>20.58</td>\n",
       "      <td>285217.94</td>\n",
       "      <td>2.12</td>\n",
       "      <td>9.98</td>\n",
       "      <td>21.416</td>\n",
       "      <td>21.006</td>\n",
       "      <td>20.479</td>\n",
       "      <td>203027.90</td>\n",
       "      <td>211702.43</td>\n",
       "      <td>208217.12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>20.31</td>\n",
       "      <td>21.53</td>\n",
       "      <td>21.24</td>\n",
       "      <td>20.08</td>\n",
       "      <td>237180.05</td>\n",
       "      <td>0.84</td>\n",
       "      <td>4.12</td>\n",
       "      <td>20.804</td>\n",
       "      <td>20.744</td>\n",
       "      <td>20.248</td>\n",
       "      <td>179878.59</td>\n",
       "      <td>214353.52</td>\n",
       "      <td>200045.24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>21.01</td>\n",
       "      <td>21.11</td>\n",
       "      <td>20.40</td>\n",
       "      <td>20.40</td>\n",
       "      <td>120305.32</td>\n",
       "      <td>-0.75</td>\n",
       "      <td>-3.55</td>\n",
       "      <td>20.672</td>\n",
       "      <td>20.590</td>\n",
       "      <td>20.068</td>\n",
       "      <td>182143.04</td>\n",
       "      <td>210405.44</td>\n",
       "      <td>192780.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>20.99</td>\n",
       "      <td>21.16</td>\n",
       "      <td>21.15</td>\n",
       "      <td>19.98</td>\n",
       "      <td>175319.77</td>\n",
       "      <td>0.22</td>\n",
       "      <td>1.05</td>\n",
       "      <td>20.566</td>\n",
       "      <td>20.501</td>\n",
       "      <td>19.947</td>\n",
       "      <td>209358.56</td>\n",
       "      <td>216870.16</td>\n",
       "      <td>191965.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>20.21</td>\n",
       "      <td>21.59</td>\n",
       "      <td>20.93</td>\n",
       "      <td>20.15</td>\n",
       "      <td>197116.41</td>\n",
       "      <td>0.63</td>\n",
       "      <td>3.10</td>\n",
       "      <td>20.574</td>\n",
       "      <td>20.457</td>\n",
       "      <td>19.744</td>\n",
       "      <td>214527.74</td>\n",
       "      <td>219714.13</td>\n",
       "      <td>188143.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>20.57</td>\n",
       "      <td>21.00</td>\n",
       "      <td>20.30</td>\n",
       "      <td>19.92</td>\n",
       "      <td>169471.41</td>\n",
       "      <td>-0.28</td>\n",
       "      <td>-1.36</td>\n",
       "      <td>20.596</td>\n",
       "      <td>20.361</td>\n",
       "      <td>19.602</td>\n",
       "      <td>220376.96</td>\n",
       "      <td>215256.89</td>\n",
       "      <td>183077.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>19.80</td>\n",
       "      <td>21.34</td>\n",
       "      <td>20.58</td>\n",
       "      <td>19.67</td>\n",
       "      <td>248502.31</td>\n",
       "      <td>0.71</td>\n",
       "      <td>3.57</td>\n",
       "      <td>20.684</td>\n",
       "      <td>20.370</td>\n",
       "      <td>19.516</td>\n",
       "      <td>248828.44</td>\n",
       "      <td>222424.89</td>\n",
       "      <td>180589.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>20.43</td>\n",
       "      <td>20.67</td>\n",
       "      <td>19.87</td>\n",
       "      <td>19.42</td>\n",
       "      <td>256382.91</td>\n",
       "      <td>-1.32</td>\n",
       "      <td>-6.23</td>\n",
       "      <td>20.508</td>\n",
       "      <td>20.258</td>\n",
       "      <td>19.405</td>\n",
       "      <td>238667.83</td>\n",
       "      <td>212641.17</td>\n",
       "      <td>171870.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>20.88</td>\n",
       "      <td>21.67</td>\n",
       "      <td>21.19</td>\n",
       "      <td>20.46</td>\n",
       "      <td>201165.64</td>\n",
       "      <td>0.15</td>\n",
       "      <td>0.71</td>\n",
       "      <td>20.436</td>\n",
       "      <td>20.277</td>\n",
       "      <td>19.334</td>\n",
       "      <td>224381.75</td>\n",
       "      <td>205605.51</td>\n",
       "      <td>162626.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>20.69</td>\n",
       "      <td>21.12</td>\n",
       "      <td>21.04</td>\n",
       "      <td>20.42</td>\n",
       "      <td>226362.55</td>\n",
       "      <td>0.30</td>\n",
       "      <td>1.45</td>\n",
       "      <td>20.340</td>\n",
       "      <td>20.181</td>\n",
       "      <td>19.190</td>\n",
       "      <td>224900.53</td>\n",
       "      <td>211998.41</td>\n",
       "      <td>158078.63</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>19.47</td>\n",
       "      <td>21.67</td>\n",
       "      <td>20.74</td>\n",
       "      <td>19.34</td>\n",
       "      <td>311728.81</td>\n",
       "      <td>1.04</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.126</td>\n",
       "      <td>19.951</td>\n",
       "      <td>19.084</td>\n",
       "      <td>210136.81</td>\n",
       "      <td>204731.81</td>\n",
       "      <td>150349.86</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>19.70</td>\n",
       "      <td>20.85</td>\n",
       "      <td>19.70</td>\n",
       "      <td>19.30</td>\n",
       "      <td>197699.22</td>\n",
       "      <td>0.19</td>\n",
       "      <td>0.97</td>\n",
       "      <td>20.056</td>\n",
       "      <td>19.751</td>\n",
       "      <td>18.983</td>\n",
       "      <td>196021.34</td>\n",
       "      <td>185736.96</td>\n",
       "      <td>137993.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>20.60</td>\n",
       "      <td>20.61</td>\n",
       "      <td>19.51</td>\n",
       "      <td>19.23</td>\n",
       "      <td>184952.52</td>\n",
       "      <td>-1.20</td>\n",
       "      <td>-5.79</td>\n",
       "      <td>20.008</td>\n",
       "      <td>19.545</td>\n",
       "      <td>18.950</td>\n",
       "      <td>186614.52</td>\n",
       "      <td>175155.78</td>\n",
       "      <td>133121.67</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>20.04</td>\n",
       "      <td>20.96</td>\n",
       "      <td>20.71</td>\n",
       "      <td>19.60</td>\n",
       "      <td>203759.55</td>\n",
       "      <td>0.74</td>\n",
       "      <td>3.71</td>\n",
       "      <td>20.118</td>\n",
       "      <td>19.393</td>\n",
       "      <td>18.923</td>\n",
       "      <td>186829.27</td>\n",
       "      <td>167061.65</td>\n",
       "      <td>132099.17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>20.38</td>\n",
       "      <td>20.45</td>\n",
       "      <td>19.97</td>\n",
       "      <td>19.68</td>\n",
       "      <td>152543.95</td>\n",
       "      <td>-0.42</td>\n",
       "      <td>-2.06</td>\n",
       "      <td>20.022</td>\n",
       "      <td>19.031</td>\n",
       "      <td>18.768</td>\n",
       "      <td>199096.28</td>\n",
       "      <td>156572.68</td>\n",
       "      <td>126548.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>19.60</td>\n",
       "      <td>20.78</td>\n",
       "      <td>20.39</td>\n",
       "      <td>19.50</td>\n",
       "      <td>241151.48</td>\n",
       "      <td>0.93</td>\n",
       "      <td>4.78</td>\n",
       "      <td>19.776</td>\n",
       "      <td>18.842</td>\n",
       "      <td>18.629</td>\n",
       "      <td>199326.80</td>\n",
       "      <td>150898.35</td>\n",
       "      <td>121973.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>20.00</td>\n",
       "      <td>20.39</td>\n",
       "      <td>19.46</td>\n",
       "      <td>19.41</td>\n",
       "      <td>150665.09</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>-2.99</td>\n",
       "      <td>19.446</td>\n",
       "      <td>18.661</td>\n",
       "      <td>18.479</td>\n",
       "      <td>175452.57</td>\n",
       "      <td>138754.60</td>\n",
       "      <td>115245.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>19.99</td>\n",
       "      <td>20.50</td>\n",
       "      <td>20.06</td>\n",
       "      <td>19.80</td>\n",
       "      <td>186026.27</td>\n",
       "      <td>-0.17</td>\n",
       "      <td>-0.84</td>\n",
       "      <td>19.082</td>\n",
       "      <td>18.551</td>\n",
       "      <td>18.349</td>\n",
       "      <td>163697.05</td>\n",
       "      <td>131099.93</td>\n",
       "      <td>111434.21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>18.48</td>\n",
       "      <td>20.61</td>\n",
       "      <td>20.23</td>\n",
       "      <td>18.40</td>\n",
       "      <td>265094.62</td>\n",
       "      <td>1.49</td>\n",
       "      <td>7.95</td>\n",
       "      <td>18.668</td>\n",
       "      <td>18.391</td>\n",
       "      <td>18.200</td>\n",
       "      <td>147294.03</td>\n",
       "      <td>119647.80</td>\n",
       "      <td>106616.72</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-25</th>\n",
       "      <td>18.96</td>\n",
       "      <td>19.44</td>\n",
       "      <td>18.74</td>\n",
       "      <td>18.45</td>\n",
       "      <td>153696.55</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>18.040</td>\n",
       "      <td>18.199</td>\n",
       "      <td>18.050</td>\n",
       "      <td>114049.07</td>\n",
       "      <td>104158.85</td>\n",
       "      <td>100360.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-22</th>\n",
       "      <td>17.61</td>\n",
       "      <td>19.09</td>\n",
       "      <td>18.74</td>\n",
       "      <td>17.35</td>\n",
       "      <td>121780.30</td>\n",
       "      <td>1.10</td>\n",
       "      <td>6.24</td>\n",
       "      <td>17.908</td>\n",
       "      <td>18.217</td>\n",
       "      <td>18.016</td>\n",
       "      <td>102469.89</td>\n",
       "      <td>95967.92</td>\n",
       "      <td>95366.35</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-21</th>\n",
       "      <td>17.87</td>\n",
       "      <td>18.12</td>\n",
       "      <td>17.64</td>\n",
       "      <td>17.27</td>\n",
       "      <td>91887.51</td>\n",
       "      <td>-0.35</td>\n",
       "      <td>-1.95</td>\n",
       "      <td>17.876</td>\n",
       "      <td>18.214</td>\n",
       "      <td>18.006</td>\n",
       "      <td>102056.62</td>\n",
       "      <td>90249.11</td>\n",
       "      <td>91919.58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-20</th>\n",
       "      <td>17.08</td>\n",
       "      <td>18.38</td>\n",
       "      <td>17.99</td>\n",
       "      <td>17.06</td>\n",
       "      <td>104011.18</td>\n",
       "      <td>0.90</td>\n",
       "      <td>5.27</td>\n",
       "      <td>18.020</td>\n",
       "      <td>18.355</td>\n",
       "      <td>18.046</td>\n",
       "      <td>98502.81</td>\n",
       "      <td>91087.56</td>\n",
       "      <td>90816.07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-19</th>\n",
       "      <td>16.46</td>\n",
       "      <td>17.76</td>\n",
       "      <td>17.09</td>\n",
       "      <td>16.46</td>\n",
       "      <td>98869.81</td>\n",
       "      <td>-0.99</td>\n",
       "      <td>-5.48</td>\n",
       "      <td>18.114</td>\n",
       "      <td>18.452</td>\n",
       "      <td>18.088</td>\n",
       "      <td>92001.58</td>\n",
       "      <td>97136.70</td>\n",
       "      <td>88537.12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-15</th>\n",
       "      <td>18.55</td>\n",
       "      <td>18.69</td>\n",
       "      <td>18.08</td>\n",
       "      <td>17.45</td>\n",
       "      <td>95800.65</td>\n",
       "      <td>-0.50</td>\n",
       "      <td>-2.69</td>\n",
       "      <td>18.358</td>\n",
       "      <td>18.504</td>\n",
       "      <td>18.174</td>\n",
       "      <td>94268.63</td>\n",
       "      <td>96523.72</td>\n",
       "      <td>89368.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-14</th>\n",
       "      <td>18.00</td>\n",
       "      <td>19.27</td>\n",
       "      <td>18.58</td>\n",
       "      <td>18.00</td>\n",
       "      <td>119713.97</td>\n",
       "      <td>0.22</td>\n",
       "      <td>1.20</td>\n",
       "      <td>18.526</td>\n",
       "      <td>18.416</td>\n",
       "      <td>18.185</td>\n",
       "      <td>89465.96</td>\n",
       "      <td>93048.83</td>\n",
       "      <td>88796.73</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-13</th>\n",
       "      <td>18.38</td>\n",
       "      <td>18.89</td>\n",
       "      <td>18.36</td>\n",
       "      <td>18.23</td>\n",
       "      <td>74118.44</td>\n",
       "      <td>-0.10</td>\n",
       "      <td>-0.54</td>\n",
       "      <td>18.552</td>\n",
       "      <td>18.296</td>\n",
       "      <td>18.163</td>\n",
       "      <td>78441.60</td>\n",
       "      <td>91737.27</td>\n",
       "      <td>87695.72</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-12</th>\n",
       "      <td>18.55</td>\n",
       "      <td>18.60</td>\n",
       "      <td>18.46</td>\n",
       "      <td>17.81</td>\n",
       "      <td>71505.01</td>\n",
       "      <td>0.15</td>\n",
       "      <td>0.82</td>\n",
       "      <td>18.690</td>\n",
       "      <td>18.146</td>\n",
       "      <td>18.150</td>\n",
       "      <td>83672.31</td>\n",
       "      <td>91768.49</td>\n",
       "      <td>88154.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-11</th>\n",
       "      <td>18.95</td>\n",
       "      <td>19.37</td>\n",
       "      <td>18.31</td>\n",
       "      <td>18.10</td>\n",
       "      <td>110205.10</td>\n",
       "      <td>-0.61</td>\n",
       "      <td>-3.22</td>\n",
       "      <td>18.790</td>\n",
       "      <td>18.009</td>\n",
       "      <td>18.155</td>\n",
       "      <td>102271.82</td>\n",
       "      <td>93585.63</td>\n",
       "      <td>89946.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-08</th>\n",
       "      <td>18.71</td>\n",
       "      <td>19.09</td>\n",
       "      <td>18.92</td>\n",
       "      <td>18.45</td>\n",
       "      <td>71787.26</td>\n",
       "      <td>0.21</td>\n",
       "      <td>1.12</td>\n",
       "      <td>18.650</td>\n",
       "      <td>17.901</td>\n",
       "      <td>18.141</td>\n",
       "      <td>98778.80</td>\n",
       "      <td>96563.13</td>\n",
       "      <td>91867.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-09-01</th>\n",
       "      <td>24.00</td>\n",
       "      <td>24.38</td>\n",
       "      <td>21.81</td>\n",
       "      <td>21.81</td>\n",
       "      <td>93530.31</td>\n",
       "      <td>-2.42</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>24.126</td>\n",
       "      <td>27.775</td>\n",
       "      <td>30.658</td>\n",
       "      <td>124398.51</td>\n",
       "      <td>120896.38</td>\n",
       "      <td>137343.63</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-31</th>\n",
       "      <td>26.22</td>\n",
       "      <td>26.60</td>\n",
       "      <td>24.23</td>\n",
       "      <td>24.23</td>\n",
       "      <td>110690.85</td>\n",
       "      <td>-2.69</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>24.920</td>\n",
       "      <td>28.824</td>\n",
       "      <td>31.013</td>\n",
       "      <td>123187.43</td>\n",
       "      <td>128681.49</td>\n",
       "      <td>138307.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-28</th>\n",
       "      <td>25.38</td>\n",
       "      <td>26.92</td>\n",
       "      <td>26.92</td>\n",
       "      <td>24.53</td>\n",
       "      <td>150264.59</td>\n",
       "      <td>2.45</td>\n",
       "      <td>10.01</td>\n",
       "      <td>25.802</td>\n",
       "      <td>29.919</td>\n",
       "      <td>31.115</td>\n",
       "      <td>110358.53</td>\n",
       "      <td>126733.12</td>\n",
       "      <td>139197.12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-27</th>\n",
       "      <td>23.94</td>\n",
       "      <td>24.58</td>\n",
       "      <td>24.47</td>\n",
       "      <td>21.18</td>\n",
       "      <td>126911.64</td>\n",
       "      <td>1.27</td>\n",
       "      <td>5.47</td>\n",
       "      <td>26.782</td>\n",
       "      <td>30.762</td>\n",
       "      <td>31.228</td>\n",
       "      <td>107683.76</td>\n",
       "      <td>124317.34</td>\n",
       "      <td>136680.12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-26</th>\n",
       "      <td>25.00</td>\n",
       "      <td>26.66</td>\n",
       "      <td>23.20</td>\n",
       "      <td>23.20</td>\n",
       "      <td>140595.16</td>\n",
       "      <td>-2.58</td>\n",
       "      <td>-10.01</td>\n",
       "      <td>28.958</td>\n",
       "      <td>31.978</td>\n",
       "      <td>31.580</td>\n",
       "      <td>118228.67</td>\n",
       "      <td>126011.83</td>\n",
       "      <td>137955.15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-25</th>\n",
       "      <td>25.78</td>\n",
       "      <td>27.00</td>\n",
       "      <td>25.78</td>\n",
       "      <td>25.78</td>\n",
       "      <td>87474.90</td>\n",
       "      <td>-2.86</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>31.424</td>\n",
       "      <td>33.120</td>\n",
       "      <td>32.099</td>\n",
       "      <td>117394.25</td>\n",
       "      <td>124946.63</td>\n",
       "      <td>138770.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-24</th>\n",
       "      <td>29.41</td>\n",
       "      <td>30.00</td>\n",
       "      <td>28.64</td>\n",
       "      <td>28.64</td>\n",
       "      <td>46546.35</td>\n",
       "      <td>-3.18</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>32.728</td>\n",
       "      <td>34.034</td>\n",
       "      <td>32.355</td>\n",
       "      <td>134175.55</td>\n",
       "      <td>135903.94</td>\n",
       "      <td>142245.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-21</th>\n",
       "      <td>33.56</td>\n",
       "      <td>34.59</td>\n",
       "      <td>31.82</td>\n",
       "      <td>31.82</td>\n",
       "      <td>136890.77</td>\n",
       "      <td>-3.53</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>34.036</td>\n",
       "      <td>34.727</td>\n",
       "      <td>32.640</td>\n",
       "      <td>143107.71</td>\n",
       "      <td>152547.13</td>\n",
       "      <td>148310.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-20</th>\n",
       "      <td>35.75</td>\n",
       "      <td>37.49</td>\n",
       "      <td>35.35</td>\n",
       "      <td>34.90</td>\n",
       "      <td>179636.19</td>\n",
       "      <td>-0.18</td>\n",
       "      <td>-0.51</td>\n",
       "      <td>34.742</td>\n",
       "      <td>34.779</td>\n",
       "      <td>32.957</td>\n",
       "      <td>140950.91</td>\n",
       "      <td>158022.20</td>\n",
       "      <td>149156.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-19</th>\n",
       "      <td>30.53</td>\n",
       "      <td>35.53</td>\n",
       "      <td>35.53</td>\n",
       "      <td>29.69</td>\n",
       "      <td>136423.05</td>\n",
       "      <td>3.23</td>\n",
       "      <td>10.00</td>\n",
       "      <td>34.998</td>\n",
       "      <td>34.184</td>\n",
       "      <td>33.085</td>\n",
       "      <td>133794.99</td>\n",
       "      <td>151635.63</td>\n",
       "      <td>146321.16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-18</th>\n",
       "      <td>35.10</td>\n",
       "      <td>37.98</td>\n",
       "      <td>32.30</td>\n",
       "      <td>31.70</td>\n",
       "      <td>171381.38</td>\n",
       "      <td>-2.88</td>\n",
       "      <td>-8.19</td>\n",
       "      <td>34.816</td>\n",
       "      <td>33.541</td>\n",
       "      <td>33.123</td>\n",
       "      <td>132499.00</td>\n",
       "      <td>153790.88</td>\n",
       "      <td>147077.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-17</th>\n",
       "      <td>34.80</td>\n",
       "      <td>35.48</td>\n",
       "      <td>35.18</td>\n",
       "      <td>33.90</td>\n",
       "      <td>91207.18</td>\n",
       "      <td>-0.17</td>\n",
       "      <td>-0.48</td>\n",
       "      <td>35.340</td>\n",
       "      <td>33.201</td>\n",
       "      <td>33.166</td>\n",
       "      <td>137632.32</td>\n",
       "      <td>147933.75</td>\n",
       "      <td>145798.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-14</th>\n",
       "      <td>37.00</td>\n",
       "      <td>38.00</td>\n",
       "      <td>35.35</td>\n",
       "      <td>35.08</td>\n",
       "      <td>126106.76</td>\n",
       "      <td>-1.28</td>\n",
       "      <td>-3.49</td>\n",
       "      <td>35.418</td>\n",
       "      <td>32.310</td>\n",
       "      <td>33.054</td>\n",
       "      <td>161986.55</td>\n",
       "      <td>151661.11</td>\n",
       "      <td>148831.17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-13</th>\n",
       "      <td>33.99</td>\n",
       "      <td>36.80</td>\n",
       "      <td>36.63</td>\n",
       "      <td>33.02</td>\n",
       "      <td>143856.56</td>\n",
       "      <td>2.01</td>\n",
       "      <td>5.81</td>\n",
       "      <td>34.816</td>\n",
       "      <td>31.694</td>\n",
       "      <td>32.919</td>\n",
       "      <td>175093.49</td>\n",
       "      <td>149042.90</td>\n",
       "      <td>150167.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-12</th>\n",
       "      <td>34.05</td>\n",
       "      <td>36.39</td>\n",
       "      <td>34.62</td>\n",
       "      <td>33.88</td>\n",
       "      <td>129943.14</td>\n",
       "      <td>-0.30</td>\n",
       "      <td>-0.86</td>\n",
       "      <td>33.370</td>\n",
       "      <td>31.181</td>\n",
       "      <td>32.688</td>\n",
       "      <td>169476.27</td>\n",
       "      <td>149898.48</td>\n",
       "      <td>150562.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-11</th>\n",
       "      <td>35.98</td>\n",
       "      <td>37.15</td>\n",
       "      <td>34.92</td>\n",
       "      <td>34.65</td>\n",
       "      <td>197047.98</td>\n",
       "      <td>-0.65</td>\n",
       "      <td>-1.83</td>\n",
       "      <td>32.266</td>\n",
       "      <td>31.077</td>\n",
       "      <td>32.559</td>\n",
       "      <td>175082.76</td>\n",
       "      <td>152593.42</td>\n",
       "      <td>151936.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-10</th>\n",
       "      <td>34.00</td>\n",
       "      <td>35.57</td>\n",
       "      <td>35.57</td>\n",
       "      <td>33.00</td>\n",
       "      <td>212978.33</td>\n",
       "      <td>3.23</td>\n",
       "      <td>9.99</td>\n",
       "      <td>31.062</td>\n",
       "      <td>30.676</td>\n",
       "      <td>32.390</td>\n",
       "      <td>158235.18</td>\n",
       "      <td>148587.16</td>\n",
       "      <td>148714.76</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-07</th>\n",
       "      <td>29.99</td>\n",
       "      <td>32.34</td>\n",
       "      <td>32.34</td>\n",
       "      <td>29.68</td>\n",
       "      <td>191641.44</td>\n",
       "      <td>2.94</td>\n",
       "      <td>10.00</td>\n",
       "      <td>29.202</td>\n",
       "      <td>30.553</td>\n",
       "      <td>32.145</td>\n",
       "      <td>141335.67</td>\n",
       "      <td>144072.91</td>\n",
       "      <td>143771.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-06</th>\n",
       "      <td>27.84</td>\n",
       "      <td>30.37</td>\n",
       "      <td>29.40</td>\n",
       "      <td>27.60</td>\n",
       "      <td>115770.48</td>\n",
       "      <td>0.30</td>\n",
       "      <td>1.03</td>\n",
       "      <td>28.572</td>\n",
       "      <td>31.135</td>\n",
       "      <td>32.129</td>\n",
       "      <td>122992.32</td>\n",
       "      <td>140291.12</td>\n",
       "      <td>139782.24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-05</th>\n",
       "      <td>30.00</td>\n",
       "      <td>30.50</td>\n",
       "      <td>29.10</td>\n",
       "      <td>27.70</td>\n",
       "      <td>157975.58</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.69</td>\n",
       "      <td>28.992</td>\n",
       "      <td>31.985</td>\n",
       "      <td>32.377</td>\n",
       "      <td>130320.68</td>\n",
       "      <td>141006.68</td>\n",
       "      <td>141965.13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-04</th>\n",
       "      <td>26.31</td>\n",
       "      <td>28.90</td>\n",
       "      <td>28.90</td>\n",
       "      <td>26.31</td>\n",
       "      <td>112810.06</td>\n",
       "      <td>2.63</td>\n",
       "      <td>10.01</td>\n",
       "      <td>29.888</td>\n",
       "      <td>32.705</td>\n",
       "      <td>32.705</td>\n",
       "      <td>130104.07</td>\n",
       "      <td>140364.08</td>\n",
       "      <td>140364.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-08-03</th>\n",
       "      <td>28.11</td>\n",
       "      <td>28.47</td>\n",
       "      <td>26.27</td>\n",
       "      <td>26.27</td>\n",
       "      <td>128480.80</td>\n",
       "      <td>-2.92</td>\n",
       "      <td>-10.00</td>\n",
       "      <td>30.290</td>\n",
       "      <td>33.128</td>\n",
       "      <td>33.128</td>\n",
       "      <td>138939.13</td>\n",
       "      <td>143425.64</td>\n",
       "      <td>143425.64</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-31</th>\n",
       "      <td>30.28</td>\n",
       "      <td>31.45</td>\n",
       "      <td>29.19</td>\n",
       "      <td>28.65</td>\n",
       "      <td>99924.67</td>\n",
       "      <td>-2.31</td>\n",
       "      <td>-7.33</td>\n",
       "      <td>31.904</td>\n",
       "      <td>33.985</td>\n",
       "      <td>33.985</td>\n",
       "      <td>146810.15</td>\n",
       "      <td>145293.75</td>\n",
       "      <td>145293.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-30</th>\n",
       "      <td>33.00</td>\n",
       "      <td>34.95</td>\n",
       "      <td>31.50</td>\n",
       "      <td>31.25</td>\n",
       "      <td>152412.31</td>\n",
       "      <td>-2.08</td>\n",
       "      <td>-6.19</td>\n",
       "      <td>33.698</td>\n",
       "      <td>34.670</td>\n",
       "      <td>34.670</td>\n",
       "      <td>157589.92</td>\n",
       "      <td>151775.04</td>\n",
       "      <td>151775.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-29</th>\n",
       "      <td>31.98</td>\n",
       "      <td>33.85</td>\n",
       "      <td>33.58</td>\n",
       "      <td>28.18</td>\n",
       "      <td>156892.53</td>\n",
       "      <td>2.67</td>\n",
       "      <td>8.64</td>\n",
       "      <td>34.978</td>\n",
       "      <td>35.198</td>\n",
       "      <td>35.198</td>\n",
       "      <td>151692.68</td>\n",
       "      <td>151668.83</td>\n",
       "      <td>151668.83</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-28</th>\n",
       "      <td>31.14</td>\n",
       "      <td>34.98</td>\n",
       "      <td>30.91</td>\n",
       "      <td>30.91</td>\n",
       "      <td>156985.36</td>\n",
       "      <td>-3.43</td>\n",
       "      <td>-9.99</td>\n",
       "      <td>35.522</td>\n",
       "      <td>35.522</td>\n",
       "      <td>35.522</td>\n",
       "      <td>150624.09</td>\n",
       "      <td>150624.09</td>\n",
       "      <td>150624.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-27</th>\n",
       "      <td>36.18</td>\n",
       "      <td>40.00</td>\n",
       "      <td>34.34</td>\n",
       "      <td>34.34</td>\n",
       "      <td>167835.89</td>\n",
       "      <td>-3.82</td>\n",
       "      <td>-10.01</td>\n",
       "      <td>36.675</td>\n",
       "      <td>36.675</td>\n",
       "      <td>36.675</td>\n",
       "      <td>149033.78</td>\n",
       "      <td>149033.78</td>\n",
       "      <td>149033.78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-24</th>\n",
       "      <td>37.93</td>\n",
       "      <td>41.50</td>\n",
       "      <td>38.16</td>\n",
       "      <td>36.60</td>\n",
       "      <td>153823.50</td>\n",
       "      <td>0.26</td>\n",
       "      <td>0.69</td>\n",
       "      <td>37.453</td>\n",
       "      <td>37.453</td>\n",
       "      <td>37.453</td>\n",
       "      <td>142766.41</td>\n",
       "      <td>142766.41</td>\n",
       "      <td>142766.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-23</th>\n",
       "      <td>36.68</td>\n",
       "      <td>38.48</td>\n",
       "      <td>37.90</td>\n",
       "      <td>35.08</td>\n",
       "      <td>122926.13</td>\n",
       "      <td>1.60</td>\n",
       "      <td>4.41</td>\n",
       "      <td>37.100</td>\n",
       "      <td>37.100</td>\n",
       "      <td>37.100</td>\n",
       "      <td>137237.86</td>\n",
       "      <td>137237.86</td>\n",
       "      <td>137237.86</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-07-22</th>\n",
       "      <td>34.59</td>\n",
       "      <td>37.00</td>\n",
       "      <td>36.30</td>\n",
       "      <td>34.00</td>\n",
       "      <td>151549.59</td>\n",
       "      <td>1.20</td>\n",
       "      <td>3.42</td>\n",
       "      <td>36.300</td>\n",
       "      <td>36.300</td>\n",
       "      <td>36.300</td>\n",
       "      <td>151549.59</td>\n",
       "      <td>151549.59</td>\n",
       "      <td>151549.59</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>673 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             open   high  close    low     volume  price_change  p_change  \\\n",
       "date                                                                        \n",
       "2018-07-20  21.27  23.36  23.36  20.58  285217.94          2.12      9.98   \n",
       "2018-07-19  20.31  21.53  21.24  20.08  237180.05          0.84      4.12   \n",
       "2018-07-18  21.01  21.11  20.40  20.40  120305.32         -0.75     -3.55   \n",
       "2018-07-17  20.99  21.16  21.15  19.98  175319.77          0.22      1.05   \n",
       "2018-07-16  20.21  21.59  20.93  20.15  197116.41          0.63      3.10   \n",
       "2018-07-13  20.57  21.00  20.30  19.92  169471.41         -0.28     -1.36   \n",
       "2018-07-12  19.80  21.34  20.58  19.67  248502.31          0.71      3.57   \n",
       "2018-07-11  20.43  20.67  19.87  19.42  256382.91         -1.32     -6.23   \n",
       "2018-07-10  20.88  21.67  21.19  20.46  201165.64          0.15      0.71   \n",
       "2018-07-09  20.69  21.12  21.04  20.42  226362.55          0.30      1.45   \n",
       "2018-07-06  19.47  21.67  20.74  19.34  311728.81          1.04      5.28   \n",
       "2018-07-05  19.70  20.85  19.70  19.30  197699.22          0.19      0.97   \n",
       "2018-07-04  20.60  20.61  19.51  19.23  184952.52         -1.20     -5.79   \n",
       "2018-07-03  20.04  20.96  20.71  19.60  203759.55          0.74      3.71   \n",
       "2018-07-02  20.38  20.45  19.97  19.68  152543.95         -0.42     -2.06   \n",
       "2018-06-29  19.60  20.78  20.39  19.50  241151.48          0.93      4.78   \n",
       "2018-06-28  20.00  20.39  19.46  19.41  150665.09         -0.60     -2.99   \n",
       "2018-06-27  19.99  20.50  20.06  19.80  186026.27         -0.17     -0.84   \n",
       "2018-06-26  18.48  20.61  20.23  18.40  265094.62          1.49      7.95   \n",
       "2018-06-25  18.96  19.44  18.74  18.45  153696.55          0.00      0.00   \n",
       "2018-06-22  17.61  19.09  18.74  17.35  121780.30          1.10      6.24   \n",
       "2018-06-21  17.87  18.12  17.64  17.27   91887.51         -0.35     -1.95   \n",
       "2018-06-20  17.08  18.38  17.99  17.06  104011.18          0.90      5.27   \n",
       "2018-06-19  16.46  17.76  17.09  16.46   98869.81         -0.99     -5.48   \n",
       "2018-06-15  18.55  18.69  18.08  17.45   95800.65         -0.50     -2.69   \n",
       "2018-06-14  18.00  19.27  18.58  18.00  119713.97          0.22      1.20   \n",
       "2018-06-13  18.38  18.89  18.36  18.23   74118.44         -0.10     -0.54   \n",
       "2018-06-12  18.55  18.60  18.46  17.81   71505.01          0.15      0.82   \n",
       "2018-06-11  18.95  19.37  18.31  18.10  110205.10         -0.61     -3.22   \n",
       "2018-06-08  18.71  19.09  18.92  18.45   71787.26          0.21      1.12   \n",
       "...           ...    ...    ...    ...        ...           ...       ...   \n",
       "2015-09-01  24.00  24.38  21.81  21.81   93530.31         -2.42     -9.99   \n",
       "2015-08-31  26.22  26.60  24.23  24.23  110690.85         -2.69     -9.99   \n",
       "2015-08-28  25.38  26.92  26.92  24.53  150264.59          2.45     10.01   \n",
       "2015-08-27  23.94  24.58  24.47  21.18  126911.64          1.27      5.47   \n",
       "2015-08-26  25.00  26.66  23.20  23.20  140595.16         -2.58    -10.01   \n",
       "2015-08-25  25.78  27.00  25.78  25.78   87474.90         -2.86     -9.99   \n",
       "2015-08-24  29.41  30.00  28.64  28.64   46546.35         -3.18     -9.99   \n",
       "2015-08-21  33.56  34.59  31.82  31.82  136890.77         -3.53     -9.99   \n",
       "2015-08-20  35.75  37.49  35.35  34.90  179636.19         -0.18     -0.51   \n",
       "2015-08-19  30.53  35.53  35.53  29.69  136423.05          3.23     10.00   \n",
       "2015-08-18  35.10  37.98  32.30  31.70  171381.38         -2.88     -8.19   \n",
       "2015-08-17  34.80  35.48  35.18  33.90   91207.18         -0.17     -0.48   \n",
       "2015-08-14  37.00  38.00  35.35  35.08  126106.76         -1.28     -3.49   \n",
       "2015-08-13  33.99  36.80  36.63  33.02  143856.56          2.01      5.81   \n",
       "2015-08-12  34.05  36.39  34.62  33.88  129943.14         -0.30     -0.86   \n",
       "2015-08-11  35.98  37.15  34.92  34.65  197047.98         -0.65     -1.83   \n",
       "2015-08-10  34.00  35.57  35.57  33.00  212978.33          3.23      9.99   \n",
       "2015-08-07  29.99  32.34  32.34  29.68  191641.44          2.94     10.00   \n",
       "2015-08-06  27.84  30.37  29.40  27.60  115770.48          0.30      1.03   \n",
       "2015-08-05  30.00  30.50  29.10  27.70  157975.58          0.20      0.69   \n",
       "2015-08-04  26.31  28.90  28.90  26.31  112810.06          2.63     10.01   \n",
       "2015-08-03  28.11  28.47  26.27  26.27  128480.80         -2.92    -10.00   \n",
       "2015-07-31  30.28  31.45  29.19  28.65   99924.67         -2.31     -7.33   \n",
       "2015-07-30  33.00  34.95  31.50  31.25  152412.31         -2.08     -6.19   \n",
       "2015-07-29  31.98  33.85  33.58  28.18  156892.53          2.67      8.64   \n",
       "2015-07-28  31.14  34.98  30.91  30.91  156985.36         -3.43     -9.99   \n",
       "2015-07-27  36.18  40.00  34.34  34.34  167835.89         -3.82    -10.01   \n",
       "2015-07-24  37.93  41.50  38.16  36.60  153823.50          0.26      0.69   \n",
       "2015-07-23  36.68  38.48  37.90  35.08  122926.13          1.60      4.41   \n",
       "2015-07-22  34.59  37.00  36.30  34.00  151549.59          1.20      3.42   \n",
       "\n",
       "               ma5    ma10    ma20      v_ma5     v_ma10     v_ma20  \n",
       "date                                                                 \n",
       "2018-07-20  21.416  21.006  20.479  203027.90  211702.43  208217.12  \n",
       "2018-07-19  20.804  20.744  20.248  179878.59  214353.52  200045.24  \n",
       "2018-07-18  20.672  20.590  20.068  182143.04  210405.44  192780.61  \n",
       "2018-07-17  20.566  20.501  19.947  209358.56  216870.16  191965.90  \n",
       "2018-07-16  20.574  20.457  19.744  214527.74  219714.13  188143.40  \n",
       "2018-07-13  20.596  20.361  19.602  220376.96  215256.89  183077.62  \n",
       "2018-07-12  20.684  20.370  19.516  248828.44  222424.89  180589.74  \n",
       "2018-07-11  20.508  20.258  19.405  238667.83  212641.17  171870.55  \n",
       "2018-07-10  20.436  20.277  19.334  224381.75  205605.51  162626.66  \n",
       "2018-07-09  20.340  20.181  19.190  224900.53  211998.41  158078.63  \n",
       "2018-07-06  20.126  19.951  19.084  210136.81  204731.81  150349.86  \n",
       "2018-07-05  20.056  19.751  18.983  196021.34  185736.96  137993.03  \n",
       "2018-07-04  20.008  19.545  18.950  186614.52  175155.78  133121.67  \n",
       "2018-07-03  20.118  19.393  18.923  186829.27  167061.65  132099.17  \n",
       "2018-07-02  20.022  19.031  18.768  199096.28  156572.68  126548.20  \n",
       "2018-06-29  19.776  18.842  18.629  199326.80  150898.35  121973.59  \n",
       "2018-06-28  19.446  18.661  18.479  175452.57  138754.60  115245.93  \n",
       "2018-06-27  19.082  18.551  18.349  163697.05  131099.93  111434.21  \n",
       "2018-06-26  18.668  18.391  18.200  147294.03  119647.80  106616.72  \n",
       "2018-06-25  18.040  18.199  18.050  114049.07  104158.85  100360.99  \n",
       "2018-06-22  17.908  18.217  18.016  102469.89   95967.92   95366.35  \n",
       "2018-06-21  17.876  18.214  18.006  102056.62   90249.11   91919.58  \n",
       "2018-06-20  18.020  18.355  18.046   98502.81   91087.56   90816.07  \n",
       "2018-06-19  18.114  18.452  18.088   92001.58   97136.70   88537.12  \n",
       "2018-06-15  18.358  18.504  18.174   94268.63   96523.72   89368.04  \n",
       "2018-06-14  18.526  18.416  18.185   89465.96   93048.83   88796.73  \n",
       "2018-06-13  18.552  18.296  18.163   78441.60   91737.27   87695.72  \n",
       "2018-06-12  18.690  18.146  18.150   83672.31   91768.49   88154.84  \n",
       "2018-06-11  18.790  18.009  18.155  102271.82   93585.63   89946.77  \n",
       "2018-06-08  18.650  17.901  18.141   98778.80   96563.13   91867.40  \n",
       "...            ...     ...     ...        ...        ...        ...  \n",
       "2015-09-01  24.126  27.775  30.658  124398.51  120896.38  137343.63  \n",
       "2015-08-31  24.920  28.824  31.013  123187.43  128681.49  138307.62  \n",
       "2015-08-28  25.802  29.919  31.115  110358.53  126733.12  139197.12  \n",
       "2015-08-27  26.782  30.762  31.228  107683.76  124317.34  136680.12  \n",
       "2015-08-26  28.958  31.978  31.580  118228.67  126011.83  137955.15  \n",
       "2015-08-25  31.424  33.120  32.099  117394.25  124946.63  138770.02  \n",
       "2015-08-24  32.728  34.034  32.355  134175.55  135903.94  142245.55  \n",
       "2015-08-21  34.036  34.727  32.640  143107.71  152547.13  148310.02  \n",
       "2015-08-20  34.742  34.779  32.957  140950.91  158022.20  149156.66  \n",
       "2015-08-19  34.998  34.184  33.085  133794.99  151635.63  146321.16  \n",
       "2015-08-18  34.816  33.541  33.123  132499.00  153790.88  147077.48  \n",
       "2015-08-17  35.340  33.201  33.166  137632.32  147933.75  145798.33  \n",
       "2015-08-14  35.418  32.310  33.054  161986.55  151661.11  148831.17  \n",
       "2015-08-13  34.816  31.694  32.919  175093.49  149042.90  150167.90  \n",
       "2015-08-12  33.370  31.181  32.688  169476.27  149898.48  150562.36  \n",
       "2015-08-11  32.266  31.077  32.559  175082.76  152593.42  151936.98  \n",
       "2015-08-10  31.062  30.676  32.390  158235.18  148587.16  148714.76  \n",
       "2015-08-07  29.202  30.553  32.145  141335.67  144072.91  143771.41  \n",
       "2015-08-06  28.572  31.135  32.129  122992.32  140291.12  139782.24  \n",
       "2015-08-05  28.992  31.985  32.377  130320.68  141006.68  141965.13  \n",
       "2015-08-04  29.888  32.705  32.705  130104.07  140364.08  140364.08  \n",
       "2015-08-03  30.290  33.128  33.128  138939.13  143425.64  143425.64  \n",
       "2015-07-31  31.904  33.985  33.985  146810.15  145293.75  145293.75  \n",
       "2015-07-30  33.698  34.670  34.670  157589.92  151775.04  151775.04  \n",
       "2015-07-29  34.978  35.198  35.198  151692.68  151668.83  151668.83  \n",
       "2015-07-28  35.522  35.522  35.522  150624.09  150624.09  150624.09  \n",
       "2015-07-27  36.675  36.675  36.675  149033.78  149033.78  149033.78  \n",
       "2015-07-24  37.453  37.453  37.453  142766.41  142766.41  142766.41  \n",
       "2015-07-23  37.100  37.100  37.100  137237.86  137237.86  137237.86  \n",
       "2015-07-22  36.300  36.300  36.300  151549.59  151549.59  151549.59  \n",
       "\n",
       "[673 rows x 13 columns]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
